package com.atguigu.spring.aop.xml;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author wk
 * @create 2021-06-04 8:12
 */
public class AOPCalculateTest {
    @Test
    public void test(){
        ApplicationContext ac=new ClassPathXmlApplicationContext("classpath:aop-xml.xml");
        Calculate calculate = ac.getBean(Calculate.class);
        System.out.println(calculate.div(2, 0));
    }
}
